package com.xd.core.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 数据源配置
 * </p>
 *
 * @author ZX
 * @since 2024-12-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="DatasourceInfo对象", description="数据源配置")
public class DatasourceInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "连接池名称")
    private String poolName;

    @ApiModelProperty(value = "JDBC驱动")
    private String driverClassName;

    @ApiModelProperty(value = "地址")
    private String url;

    @ApiModelProperty(value = "用户名")
    private String username;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "公司ID")
    private Integer companyId;

    @ApiModelProperty(value = "连接ip")
    private String host;

    @ApiModelProperty(value = "端口")
    private String port;

    @ApiModelProperty(value = "数据库名")
    private String databaseName;


}
